package com.topisv.tms.service.work;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.work.WorkLog;
import com.topisv.tms.repository.work.WorkLogDao;

/**
 * 作业日志_service
 * @author ch
 */
@Component
@Transactional(readOnly = true)
public class WorkLogService {

	@Autowired
	private WorkLogDao workLogDao;

	/**
	 * 查询日志
	 * @param batchCode 作业批次号
	 * @return
	 */
	public List<WorkLog> loadLogByBatchCode(String batchCode) {
		return this.workLogDao.loadLogByBatchCode(batchCode);
	}

}